package com.sc.study.exam.domain;

import com.sc.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 试卷管理对象 sc_test
 * 
 * @author sc
 * @date 2022-03-29
 */
public class ScTest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 试卷名称 */
    @Excel(name = "试卷名称")
    private String name;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long userid;

    // 创建人
    private SysUser sysUser;

    //查询参数 模糊查询创建人
    private String likeNickName;

    //是否可修改
    private boolean updateIs;

    public boolean isUpdateIs() {
        return updateIs;
    }

    public void setUpdateIs(boolean updateIs) {
        this.updateIs = updateIs;
    }

    public String getLikeNickName() {
        return likeNickName;
    }

    public void setLikeNickName(String likeNickName) {
        this.likeNickName = likeNickName;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }

    public ScTest() {
    }

    public ScTest(String name, Long userid) {
        this.name = name;
        this.userid = userid;
    }

    public ScTest(Long id, String name, Long userid) {
        this.id = id;
        this.name = name;
        this.userid = userid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createTime", getCreateTime())
            .append("userid", getUserid())
            .toString();
    }
}
